#ifndef C14_T1_WINEC_H_
#define C14_T1_WINEC_H_

#include<iostream>
#include<string>
#include<valarray>


using std::string;
using std::valarray;
using std::pair;
class Wine
{
private:
	string _wineLabel;
	typedef valarray<int> arrayInt;  //arrayInt is a int array, use valarray<int>
	typedef pair<arrayInt, arrayInt> pairInt;  //pairInt is a pair of int arrays, use pair<arrayInt,arrayInt>
	int _year;
	pairInt _wineInformation;
public:
	Wine();
	Wine(const char * wineLabel, int year, const int *yearArray=NULL, const int *bottlesArray=NULL);
	~Wine(){}
	void SetBottles();
	void Show() const;
	const string & Label(){ return _wineLabel; }
	int Sum() const;

};

#endif